package site.potatoblog.threadpool.manager.vo;

public class ThreadPoolArgs {
    private int corePoolSize;
    private int maxPoolSize;
    private int keepAliveSeconds;
    private int queueCapacity;
    private double capacityThreshold;
    private double activeThreshold;
    private String queueType;
    private String appName;
    private String threadPoolName;
    private String threadFactoryType;
    private String rejectHandlerType;

    public ThreadPoolArgs(int corePoolSize, int maxPoolSize, int keepAliveSeconds, int queueCapacity, double capacityThreshold,double activeThreshold, String queueType, String appName, String threadPoolName, String threadFactoryType, String rejectHandlerType) {
        this.corePoolSize = corePoolSize;
        this.maxPoolSize = maxPoolSize;
        this.keepAliveSeconds = keepAliveSeconds;
        this.queueCapacity = queueCapacity;
        this.queueType = queueType;
        this.activeThreshold=activeThreshold;
        this.capacityThreshold=capacityThreshold;
        this.appName = appName;
        this.threadPoolName = threadPoolName;
        this.threadFactoryType = threadFactoryType;
        this.rejectHandlerType = rejectHandlerType;
    }

    public double getCapacityThreshold() {
        return capacityThreshold;
    }

    public void setCapacityThreshold(double capacityThreshold) {
        this.capacityThreshold = capacityThreshold;
    }

    public double getActiveThreshold() {
        return activeThreshold;
    }

    public void setActiveThreshold(double activeThreshold) {
        this.activeThreshold = activeThreshold;
    }

    public int getCorePoolSize() {
        return corePoolSize;
    }

    public void setCorePoolSize(int corePoolSize) {
        this.corePoolSize = corePoolSize;
    }

    public int getMaxPoolSize() {
        return maxPoolSize;
    }

    public void setMaxPoolSize(int maxPoolSize) {
        this.maxPoolSize = maxPoolSize;
    }

    public int getKeepAliveSeconds() {
        return keepAliveSeconds;
    }

    public void setKeepAliveSeconds(int keepAliveSeconds) {
        this.keepAliveSeconds = keepAliveSeconds;
    }

    public int getQueueCapacity() {
        return queueCapacity;
    }

    public void setQueueCapacity(int queueCapacity) {
        this.queueCapacity = queueCapacity;
    }

    public String getQueueType() {
        return queueType;
    }

    public void setQueueType(String queueType) {
        this.queueType = queueType;
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public String getThreadPoolName() {
        return threadPoolName;
    }

    public void setThreadPoolName(String threadPoolName) {
        this.threadPoolName = threadPoolName;
    }

    public String getThreadFactoryType() {
        return threadFactoryType;
    }

    public void setThreadFactoryType(String threadFactoryType) {
        this.threadFactoryType = threadFactoryType;
    }

    public String getRejectHandlerType() {
        return rejectHandlerType;
    }

    public void setRejectHandlerType(String rejectHandlerType) {
        this.rejectHandlerType = rejectHandlerType;
    }
}
